package com.ciko.code.fragment;


import android.view.View;
import android.widget.AdapterView;

import com.ciko.code.adapter.WorkManagerBaodangListAdapter;
import com.ciko.code.base.BaseListFragment;
import com.ciko.code.bean.SelPolicyListEty;
import com.mywork.R;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 12154 on 2015/11/10.
 */
public class WorkManagerUnitFragment extends BaseListFragment {

    private List<SelPolicyListEty> selPolicyListEtyListPerson = new ArrayList<>();

    private WorkManagerBaodangListAdapter workManagerBaodangListAdapter;

    @Override
    protected void initTopBar() {
        unableNav();
        setHeaderView(R.layout.layout_work_manager_title);
    }

    @Override
    protected void initAdapter() {
        workManagerBaodangListAdapter = new WorkManagerBaodangListAdapter(getContext(), selPolicyListEtyListPerson, R.layout.item_list_work_manager_baodang_person);
        setAdapter(workManagerBaodangListAdapter);
    }

    @Override
    protected void initDates() {

    }

    @Override
    protected void initHttpRequest() {

    }

    @Override
    protected void initListener() {

    }

    public void notifyDataSetChanged(List<SelPolicyListEty> selPolicyListEtyListPerson) {
        selPolicyListEtyListPerson.addAll(selPolicyListEtyListPerson);
        super.notifyDataSetChanged();
    }

    @Override
    public void onItemClick(AdapterView<?> parent, View view, int position, long id) {

    }
}

